package me.jiatao.mvpdagger2.mvc.news;


import java.util.List;

import me.jiatao.mvpdagger2.mvc.base.IBaseModel;
import me.jiatao.mvpdagger2.mvc.base.IBaseView;

/**
 * Created by JiaTao on 2018/8/30.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
public class INewsContract {

    // user presenter 层
    public interface INewsPresenter {
        void getNewsList();
    }

    // user View 层
    public interface INewsView extends IBaseView {
        // 3.成功了要显示数据
        void onNewsSucceed(List<String> newsList);
    }

    //Model层定义接口,外部只需关心Model返回的数据,无需关心内部细节,如是否使用缓存
    public interface INewsModel extends IBaseModel {
        List<String> getNewsList();
    }
}
